package com.xydtech.workflow.domain;

import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 流程审批权限列对象 wfl_apprauthor
 *
 * @author JHON
 * @date 2021-05-27
 */
@ApiModel(value = "流程审批权限列对象")
public class WflApprauthor extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 版本号 */
    @ApiModelProperty(notes = "版本号")
    private Long versionId;

    /** 节点编号 */
    @ApiModelProperty(notes = "节点编号")
    private Long stepId;

    /** 序号 */
    @ApiModelProperty(notes = "序号")
    private Long orderNum;

    /** 权限编码            T-同意            R-退回            F-拒绝 */
    @Excel(name = "权限编码            T-同意            R-退回            F-拒绝")
    @ApiModelProperty(notes = "权限编码            T-同意            R-退回            F-拒绝")
    private String approvCode;

    /** 权限说明 */
    @Excel(name = "权限说明")
    @ApiModelProperty(notes = "权限说明")
    private String approvDesc;

    /** 退回节点编号 */
    @Excel(name = "退回节点编号")
    @ApiModelProperty(notes = "退回节点编号")
    private Long returnStepId;

    /** 复制的版本号 */
    private Long copyVersionId;

    public Long getCopyVersionId() {
        return copyVersionId;
    }

    public void setCopyVersionId(Long copyVersionId) {
        this.copyVersionId = copyVersionId;
    }

    public void setVersionId(Long versionId) {
        this.versionId = versionId;
    }

    public Long getVersionId() {
        return versionId;
    }

    public void setStepId(Long stepId) {
        this.stepId = stepId;
    }

    public Long getStepId() {
        return stepId;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setApprovCode(String approvCode) {
        this.approvCode = approvCode;
    }

    public String getApprovCode() {
        return approvCode;
    }

    public void setApprovDesc(String approvDesc) {
        this.approvDesc = approvDesc;
    }

    public String getApprovDesc() {
        return approvDesc;
    }

    public void setReturnStepId(Long returnStepId) {
        this.returnStepId = returnStepId;
    }

    public Long getReturnStepId() {
        return returnStepId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("versionId", getVersionId())
                .append("stepId", getStepId())
                .append("orderNum", getOrderNum())
                .append("approvCode", getApprovCode())
                .append("approvDesc", getApprovDesc())
                .append("returnStepId", getReturnStepId())
                .toString();
    }
}
